package com.zhuqi.service;

import com.zhuqi.domain.ChatMessageDo;

import java.util.List;

public interface ChatMessageService{


    int deleteByPrimaryKey(Integer id);

    int insert(ChatMessageDo record);

    int insertSelective(ChatMessageDo record);

    ChatMessageDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ChatMessageDo record);

    int updateByPrimaryKey(ChatMessageDo record);

	/**
	 * 根据用户名查询以前的消息
	 * @param username 用户名
	 * @return {@link ChatMessageDo}
	 */
	List<ChatMessageDo> selectByUserName(String username);
}
